package com.androidtv.pos.ui.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;

import com.androidhelper.module.common.base.BaseFragment;
import com.androidtv.pos.R;

import androidx.annotation.Nullable;
import butterknife.BindView;

public class MainFragment extends BaseFragment {




    @BindView(R.id.fl_left_container)
    FrameLayout fl_left_container;

    @BindView(R.id.fl_right_container)
    FrameLayout fl_right_container;



    public static MainFragment newInstance() {
        Bundle args = new Bundle();
        MainFragment fragment = new MainFragment();
        fragment.setArguments(args);
        return fragment;
    }



    @Override
    protected int attachLayoutRes() {
        return R.layout.fragment_main;
    }

    @Override
    protected void initView(View view, @Nullable Bundle savedInstanceState) {

           LeftMainFragment leftMainFragment = findChildFragment(LeftMainFragment.class);
           if(leftMainFragment==null){
                loadRootFragment(R.id.fl_left_container,LeftMainFragment.newInstance());
                loadRootFragment(R.id.fl_right_container,RightMainFragment2.newInstance());
           }
    }


    @Override
    protected void setListener() {

    }

    @Override
    protected void initEventAndData(Bundle savedInstanceState) {



    }


}
